package com.njthird.busi.domain;

import java.math.BigDecimal;
import com.njthird.common.annotation.Excel;
import com.njthird.common.annotation.Excels;
import com.njthird.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 客户资金流水对象 busi_cuscapitalflow
 * 
 * @author njthird
 * @date 2020-08-10
 */
public class BusiCuscapitalflow extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 客户ID */
    @Excel(name = "客户ID")
    private String cusid;

    /** 流水类型 */
    @Excel(name = "流水类型")
    private String flowname;

    /** 资金方向 */
    @Excel(name = "资金方向")
    private String capitaldirection;

    /** 变动前余额 */
    @Excel(name = "变动前余额")
    private BigDecimal beforeamount;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal amount;

    /** 变动后余额 */
    @Excel(name = "变动后余额")
    private BigDecimal afteramount;

    /** 部门对象 */
    @Excels({
            @Excel(name = "客户名称", targetAttr = "khmc", type = Excel.Type.EXPORT),
            @Excel(name = "客户账号", targetAttr = "khzh", type = Excel.Type.EXPORT)
    })
    private BusiCustomers custom;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setCusid(String cusid) 
    {
        this.cusid = cusid;
    }

    public String getCusid() 
    {
        return cusid;
    }
    public void setFlowname(String flowname)
    {
        this.flowname = flowname;
    }

    public String getFlowname() 
    {
        return flowname;
    }
    public void setCapitaldirection(String capitaldirection) 
    {
        this.capitaldirection = capitaldirection;
    }

    public String getCapitaldirection() 
    {
        return capitaldirection;
    }
    public void setBeforeamount(BigDecimal beforeamount)
    {
        this.beforeamount = beforeamount;
    }

    public BigDecimal getBeforeamount()
    {
        return beforeamount;
    }
    public void setAmount(BigDecimal amount)
    {
        this.amount = amount;
    }

    public BigDecimal getAmount()
    {
        return amount;
    }
    public void setAfteramount(BigDecimal afteramount)
    {
        this.afteramount = afteramount;
    }

    public BigDecimal getAfteramount()
    {
        return afteramount;
    }
    public void setCustom(BusiCustomers custom)
    {
        this.custom = custom;
    }

    public BusiCustomers getCustom()
    {
        return custom;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cusid", getCusid())
            .append("flowname", getFlowname())
            .append("capitaldirection", getCapitaldirection())
            .append("afteramount", getAfteramount())
            .append("amount", getAmount())
            .append("beforeamount", getBeforeamount())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("custom", getCustom())
            .toString();
    }
}
